home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / MacGS 2.5.2ß3 / (MacGSLib.π) / gdevmacpr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-17  |  1.9 KB  |  66 lines  |  [TEXT/R*ch]

  1. #ifndef _H_gdevmacpr
  2. #define _H_gdevmacpr
  3.  
  4. /* Copyright (C) 1993 Aladdin Enterprises.  All rights reserved.
  5.    Distributed by Free Software Foundation, Inc.
  6.  
  7. This file is part of Ghostscript.
  8.  
  9. Ghostscript is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  11. to anyone for the consequences of using it or for whether it serves any
  12. particular purpose or works at all, unless he says so in writing.  Refer
  13. to the Ghostscript General Public License for full details.
  14.  
  15. Everyone is granted permission to copy, modify and redistribute
  16. Ghostscript, but only under the conditions described in the Ghostscript
  17. General Public License.  A copy of this license is supposed to have been
  18. given to you along with Ghostscript so you can know your rights and
  19. responsibilities.  It should be in a file named COPYING.  Among other
  20. things, the copyright notice and this notice must be preserved on all
  21. copies.  */
  22.  
  23.  
  24. #include "gx.h"                /* for gx_bitmap; includes std.h */
  25. #include "gxdevice.h"
  26. #include "gp_macui.h"
  27.  
  28.  
  29. /* Define the Macintosh device */
  30.  
  31. typedef struct gx_device_macpr
  32. {
  33.     gx_device_common;
  34.  
  35.     long        magicNumber;
  36.     GUIProcPtr    pGUIProcs;
  37.  
  38.     CWindowPtr    windowPtr;                /*    graphics window    */
  39. } gx_device_macpr;
  40.  
  41.  
  42. /* Macro for casting gx_device argument */
  43.  
  44. #define xdev    ((gx_device_macpr *) dev)
  45.  
  46.  
  47. /* Procedures */
  48.  
  49. dev_proc_open_device (macpr_open);
  50. dev_proc_get_initial_matrix (macpr_get_initial_matrix);
  51. dev_proc_sync_output (macpr_sync);
  52. dev_proc_output_page (macpr_output_page);
  53. dev_proc_close_device (macpr_close);
  54. dev_proc_map_rgb_color (macpr_map_rgb_color);
  55. dev_proc_map_color_rgb (macpr_map_color_rgb);
  56. dev_proc_fill_rectangle (macpr_fill_rectangle);
  57. #if 0
  58. dev_proc_tile_rectangle (macpr_tile_rectangle);
  59. #endif
  60. dev_proc_copy_mono (macpr_copy_mono);
  61. dev_proc_copy_color (macpr_copy_color);
  62. dev_proc_draw_line (macpr_draw_line);
  63.  
  64.  
  65. #endif /* _H_gdevmacpr */
  66.